<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <button onclick="hide()">隐藏</button>
    <p id="content">Lorem ipsum dolor sit amet, consectetur adipisicing
        elit. Aspernatur aut deleniti distinctio eos esse,
        explicabo illum, incidunt iste laudantium magnam maiores, molestiae
        obcaecati porro quasi quod repellendus sequi similique voluptate.</p>
    <script>
        function hide(){
            var p=document.getElementById('content');
            p.style.display="none";
            console.log(p);
        }
    </script>
</body>
</html>